// const { DEV: isDev } = import.meta.env;
// const docs = __APP_INFO__.pkg.docs
const isDev = process.env.NODE_ENV === 'development'
const docs = "http://docs.com/"

const outside = "hook";

const outsideList = [
  {
    only: "notebook",
    icon: "Notebook",
    locale: "addressBook",
    title: "通讯录",
    // class: "fix-ed",
    // if_fixed: 1,
    type: "el-icon",
  },
  {
    only: "multiSend",
    icon: "Promotion",
    title: "群发",
    type: "el-icon",
  },
  {
    only: "reply",
    icon: "Sort",
    title: "回复",
    type: "el-icon",
  },
  {
    only: "hook",
    icon: "Monitor",
    title: "检测",
    type: "el-icon",
  },
  // {
  //   only: "more",
  //   icon: "MoreFilled",
  //   locale: "more",
  //   title: "更多",
  //   mode: "other",
  //   type: "el-icon",
  // },
];

const moreList = [
  {
    only: "github",
    icon: "github",
    title: "github",
    openType: "outside",
    url: "https://github.com/Hyk260",
  },
  {
    only: "gitee",
    icon: "IceTea",
    title: "gitee",
    type: "el-icon",
    openType: "outside",
    url: "https://gitee.com/H260788/PureChat",
  },
];



export default {
  state: {
    outside,
    outsideList,
    moreList,
  },
  mutations: {
    setOutsideList(state, list) {
      const data = state.outsideList.filter((t) => t.only === "more");
      state.outsideList = [...list, ...data];
    },
    setMoreList(state, list) {
      state.moreList = list;
    },
    // 切换侧边栏
    taggleOutSide(state, item) {
      state.outside = item;
    },
  },
};
